import request from "@/utils/request";

// 支付
export const reqhandlePay=(name,sex,idCard,phone,doctorId,sid,price,description,reserveTime,uid)=>{
  return request({
    url:'/api/alipay/pay',
    method:'POST',
    data:{
      name,
      sex,
      idCard,
      phone,
      doctorId,
      // sid来自科室剩余号数
      sid,
      price,
      description,
      reserveTime,
      uid
    }
  })
}

// 查询支付状态
export const reqPayStatus=(outTradeNo)=>{
  return request({
    url:'api/alipay/success',
    method:'GET',
    params:{
      outTradeNo,
    }
  })
}